#ifndef __MYERRORS_H__
#define __MYERRORS_H__

enum
{
	ERROR_OK = 0,
	ERROR_ARGUMENT_PARSING = 1,
	ERROR_OUT_OF_MEM,
	ERROR_ARGUMENTS_COUNT,
	ERROR_ARGUMENTS_VALUES,
	ERROR_OPEN_INPUT_FILE,
	ERROR_OPEN_OUTPUT_FILE,
	ERROR_DECODE_INPUT_FILE,
	ERROR_NON_JNG_INPUT_FILE,
	ERROR_ENCODE_OUTPUT,
	ERROR_UNSUPPORTED_PNG_FORMAT,
	ERROR_UNSUPPORTED_16_BITS_PER_CHANNEL,
	ERROR_SYSTEM
};

const TCHAR* strErrOutOfMem = _T("Out of memmory!");
const TCHAR* strErrWrongArgsCount = _T("Wrong arguments count!");
const TCHAR* strErrWrongArgQuality = _T("Wrong argument! Quality should be in range 1-100!");
const TCHAR* strErrWrongBitsCount = _T("Wrong argument! Bits count should be 1, 2, 4 or 8!");
const TCHAR* strErrWrongAlphaArgs = _T("Wrong argument! Alpha bits should be 8 with jpeg alpha compression option!");
const TCHAR* strErrOpengInputFile = _T("Can't open input file!");
const TCHAR* strErrOpengOutputFile = _T("Can't open output file!");
const TCHAR* strErrDecodeInputFile = _T("Can't decode input file!");
const TCHAR* strErrNoneJngInputFile =  _T("Input file is not JNG image!");
const TCHAR* strErrUnsupportedPngFormat = _T("Unsupported PNG format!");
const TCHAR* strErrEncoding = _T("Can't encode image!");
const TCHAR* strErrUnsupported16Bits = _T("Encoding 16 bits per channel not supported!");
const TCHAR* strErrSystem = _T("System error!");

#endif//__MYERRORS_H__
